package com.zfz.happymall.service.impl;

import com.zfz.happymall.entity.Account;
import com.zfz.happymall.entity.DataVo;
import com.zfz.happymall.mapper.AccountMapper;
import com.zfz.happymall.service.AccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("AccountService")
public class AccountServiceImpl implements AccountService {

    @Resource
    private AccountMapper mapper;

    @Override
    public List<Account> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public Account getById(int id) {
        return mapper.getById(id);
    }

    @Override
    public int save(Account account) {
        return mapper.save(account);
    }

    @Override
    public int update(Account account) {
        return mapper.update(account);
    }

    @Override
    public int deleteById(int id) {
        return mapper.deleteById(id);
    }

    @Override
    public List<DataVo> getLineData(int i) {
        return mapper.getLineData(i);
    }
}
